home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5455 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  981 b 

  1. Path: news.uni-jena.de!news
  2. From: mkt@isun04.inf.uni-jena.de (Tilo Koerbs)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Visible/Invisible Class definitions ?
  5. Date: 5 Feb 1996 10:02:31 GMT
  6. Organization: Lehrstuhl fuer Rechnerarchitektur- und kommunikation, FSU Jena
  7. Message-ID: <4f4kjn$ah0@fsuj01.rz.uni-jena.de>
  8. References: <4et0rg$22d@elna.ethz.ch>
  9. Reply-To: mkt@isun04.inf.uni-jena.de
  10. NNTP-Posting-Host: isun07.inf.uni-jena.de
  11.  
  12. One cannot split a class into pieces. There are some technical reasons for this.
  13. But you can hide the member function definitions by defining it outside the class
  14. declaration.
  15. The reason it is sometimes really neccessary to know also of privat members is
  16. that C++ does not HIDE these when compiling, but it avoids ACCESS TO IT from outside
  17. the class members.
  18. So a user can get an error message like:
  19.     member ... is not accessable ...
  20.  
  21. To know why this happens it is neccessary to watch the complete class declaration!
  22.  
  23. Bye.
  24. Tilo Koerbs,  mkt@uni-jena.de
  25.  
  26.  
  27.  
  28.